'''
    Deprecated.
'''

from fudge.types import Vector4, Vector3

VLN = 10e6
Far_light = Vector4(VLN, VLN, VLN, 0.0)

setup1 = [
    Vector4(-0.5, 1.2, 0.0, 1.0),
    Vector4(2.0, 2.0, 0.0, 1.0),
    Vector4(-1.0, 3.0, -1.5, 1.0),
    Vector4(-1.0, 0.5, -1.5, 1.0),
    Vector4(-1.0, 1.0, 1.0, 1.0),
    Vector4(1.0, 0.5, 1.5, 1.0),
    Vector4(1.0, 0.5, 0.0, 1.0),
    Vector4(1.0, 2.0, -1.0, 1.0),
    Vector4(0.0, 3.0, 0.0, 1.0),
    Far_light,
    Far_light,
    Far_light,
], [
    (1.5, 1.0, 0.2),
    (0.5, 0.5, 1.0),
    (1.0, 0.5, 0.5),
    (0.5, 1.0, 0.5),
    (1.0, 1.0, 1.0),
    (0.5, 0.5, 0.5),
    (1.0, 1.0, 0.0),
    (1.0, 1.0, 1.0),
    (0.0, 1.0, 1.0),
    (1.0, 0.0, 1.0),
    (1.0, 1.0, 0.0),
    (0.0, 0.0, 0.0)
], [5.0 if x else 5.0 for x in range(12)], [0.7 for x in range(12)]

setup2 = setup1[0], [(0.5, 0.5, 0.5) for x in range(12)], setup1[2], setup1[3]

# overhead lights
setup3 = [
    Vector4(float(x), 3.0, float(z), 1.0)
    for x in range(-3,4,3)
    for z in range(-3,4,2)
], [(0.5, 0.5, 0.5) for x in range(12)], [50.0 for x in range(12)], setup1[3]


# 'studio' lighting
def studio(dy, dx):
    return [
        Vector4(float(x * dx), float(y * dy), float(z * dx), 1.0)
        for x in range(-1,2,2)
        for z in range(-1,2,2)
        for y in range(1,4)
    ], [[(0.5, 0.6, 0.7),(0.5, 0.5, 0.5), (x * 0.25, 1.0 - x * 0.25, 1.0 - x * 0.25)][y] for x in range(4) for y in range(3)], [ [(dx * dy * 1.5) ** 2.0, (dx * dy * 1.0) ** 2.0, (dx * dy * 1.8) ** 2.0][y] for x in range(4) for y in range(3)], [[0.2, 1.5, 1.0][y] for x in range(4) for y in range(3)]